﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ApiDoc.Admin.Model.Api
{
    public class GLConfig
    {

        public static List<KeyValueModel> Method
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();

                list.Add(new KeyValueModel() { Title = "Get", Value = "Get" });
                list.Add(new KeyValueModel() { Title = "Post", Value = "Post" }); 
                return list;
            }
        }

        public static List<KeyValueModel> CommandType
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();

                list.Add(new KeyValueModel() { Title = "脚本", Value = "Text" });
                list.Add(new KeyValueModel() { Title = "存储过程", Value = "StoredProcedure" });
                list.Add(new KeyValueModel() { Title = "函数", Value = "Fun" }); 
                list.Add(new KeyValueModel() { Title = "表函数", Value = "FunTable" });
                return list;
            }
        }


        public static List<KeyValueModel> DataType
        {
            get
            {
              
                List<KeyValueModel> list = new List<KeyValueModel>();

                list.Add(new KeyValueModel() { Title = "Varchar", Value = "Varchar" });
                list.Add(new KeyValueModel() { Title = "Int", Value = "Int" });
                list.Add(new KeyValueModel() { Title = "DateTime", Value = "DateTime" });
                list.Add(new KeyValueModel() { Title = "Decimal", Value = "Decimal" });
                list.Add(new KeyValueModel() { Title = "Image", Value = "Image" });
 
                return list;
            }
        }

        public static List<KeyValueModel> ExecuteType
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();

                list.Add(new KeyValueModel() { Title = "DataSet", Value = "DataSet" });
                list.Add(new KeyValueModel() { Title = "Int", Value = "Int" });
                list.Add(new KeyValueModel() { Title = "Scalar", Value = "Scalar" });
 
                return list;
            }
        }

        public static List<KeyValueModel> DataBaseType
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();
                list.Add(new KeyValueModel() { Title = "SqlServer", Value = "SqlServer" });
                list.Add(new KeyValueModel() { Title = "Oracle", Value = "Oracle" });
                list.Add(new KeyValueModel() { Title = "MySql", Value = "MySql" });
                 
                return list;
            }
        }

        public static List<KeyValueModel> SerializeType
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();
                list.Add(new KeyValueModel() { Title = "空", Value = "" });
                list.Add(new KeyValueModel() { Title = "Json", Value = "Json" });
                list.Add(new KeyValueModel() { Title = "Xml", Value = "Xml" });
                 
                return list;
            }
        }

        public static List<KeyValueModel> TranType
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();
                list.Add(new KeyValueModel() { Title = "单机", Value = "0" });
                list.Add(new KeyValueModel() { Title = "JMS", Value = "1" }); 

                return list;
            }
        }

        public static List<KeyValueModel> DataBase
        {
            get
            {
                List<KeyValueModel> list = new List<KeyValueModel>();
                list.Add(new KeyValueModel() { Title = "YZ_Med_InfoCenter", Value = "YZ_Med_InfoCenter" });
                list.Add(new KeyValueModel() { Title = "YZ_Med_LMSystem", Value = "YZ_Med_LMSystem" });
                list.Add(new KeyValueModel() { Title = "YZ_Med_EleArchivesSystem", Value = "YZ_Med_EleArchivesSystem" });
                list.Add(new KeyValueModel() { Title = "YZRegistry", Value = "YZRegistry" });
                list.Add(new KeyValueModel() { Title = "YZ_Med_BPSystem", Value = "YZ_Med_BPSystem" });
                list.Add(new KeyValueModel() { Title = "YZ_Med_GSP", Value = "YZ_Med_GSP" });
                list.Add(new KeyValueModel() { Title = "YZ_Med_FMSystem", Value = "YZ_Med_FMSystem" });
                return list;
            }
        }

    }
}
